export default class MyModel {
  constructor() {
    this.a = 1
    this.list = [1, 2, 3, 4, 5]
    this.list2 = [1, 2, 3, 4, 5, 6]
  }
  addA() {
    this.a++
    let random = Math.floor(10 * Math.random())
    this.list.push(random)
    this.list2 = new Array(5).fill(random)
  }
  add2() {
    setInterval(() => {
      this.a++
      console.log(`修改了a`, this.a)
    }, 1e3)
  }
}
